<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link type="text/css" href="/css/tablecloth.css" rel="stylesheet" media="screen" />
<script type="text/javascript" src="/js/tablecloth.js" ></script>
<script>
function clickAct(obj){window.open ("../frame/popwindow.do?id="+obj.id+"&type="+obj.name+"",'newwindow','height=400,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');}
</script>
</head>
<body> 
<div>
	<table  cellspacing="0" cellpadding="0">
	<%@ page import="db.CommonObject" %>
	<%@ page import="java.util.List" %>
	<% 
		@SuppressWarnings("unchecked")
		List<CommonObject> list = (List<CommonObject>)request.getAttribute("result");

		out.print("<tr>");
		out.print("<th>类型</th>");
		out.print("<th>名称</th>");
		out.print("<th>描述</th>");
		out.print("</tr>");
       
		for(int i=0; i < list.size(); i++)
		{
			out.print("<tr>");
			out.print("<td>" + list.get(i).getType() + "</td>");
			out.print("<td><a id="+list.get(i).getId()+" name="+list.get(i).getType()+" onclick = 'clickAct(this)'>" + list.get(i).getName() + "<a></td>");
			out.print("<td>" + list.get(i).getDescription() + "</td>");
			out.print("</tr>");
		}
	%>						
	</table>        
	<p>&nbsp;</p>
</div>
<div>
<jsp:include page="pager.jsp" />
</div>


</body>
</html> 